<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		
		var num = 100;
		var total = 0;
		function a() {
			num = 200;
			total++;
			document.write(num);
		}

		a();
		a();
		a();
		a();
		a();
		a();
		a();
		a();
		a();
		a();
		a();
		a();
		a();

		document.write(total);






	</script>
</head>
<body>
	
</body>
</html>